﻿<%@ Page Language="C#"  MasterPageFile="~/MasterPage.master" AutoEventWireup="true" Inherits="Nivdal.PlayerTransfers"
 Title="" StylesheetTheme="SkinFile" Codebehind="PlayerTransfers.aspx.cs" %>

<asp:Content ID="PageNameContent" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <h1><asp:Label ID="PageNameLabel" runat="server" Text="<%$ Resources:Resource, PlayerTransfers_PageNameLabel %>" CssClass="PageNameContentStyle"></asp:Label></h1>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="basic_element">
    <div class="red_title">
       <asp:Hyperlink ID="PlayerLinkButton" runat="server" CssClass="white_title"></asp:Hyperlink> 
    </div>
    <div class="padding5">

    
        <asp:Label ID="ErrorLabel" runat="server" Text=""></asp:Label>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1" SkinID="Professional">
            <Columns>
                <asp:BoundField DataField="Date" HeaderText="<%$ Resources:Resource, Global_Date %>" ItemStyle-CssClass="LoggedInMessagesStyle" />
                <asp:TemplateField HeaderText="<%$ Resources:Resource, PlayerTransfers_FromTeam %>">
                    <ItemTemplate>
                        <asp:HyperLink ID="FromTeamHyperlink" runat="server" Text='<%# Eval("[From team]") %>'
                         SkinID="BlackHyperLinkSkin" NavigateUrl='<%# Eval("SellerId", "TeamHomePage.aspx?TeamId={0}") %>'></asp:HyperLink>
                        <%--<asp:LinkButton ID="LinkButton2" runat="server" Text='<%# Eval("[From team]") %>' 
                        PostBackUrl='<%# Eval("SellerId", "TeamHomePage.aspx?TeamId={0}") %>'
                         SkinID="GridLinkButton"></asp:LinkButton>--%>
                    </ItemTemplate>   
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Resource, PlayerTransfers_ToTeamHeaderText %>">
                    <ItemTemplate>
                        <asp:HyperLink ID="ToTeamHyperlink" runat="server" Text='<%# Eval("To team") %>'
                         SkinID="BlackHyperLinkSkin" NavigateUrl='<%# Eval("BuyerId", "TeamHomePage.aspx?TeamId={0}") %>'></asp:HyperLink>
                    <%--<asp:LinkButton ID="LinkButton1" runat="server" Text='<%# Eval("To team") %>'
                                    PostBackUrl='<%# Eval("BuyerId", "TeamHomePage.aspx?TeamId={0}") %>'
                                    SkinID="GridLinkButton" ></asp:LinkButton>  --%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Resource, PlayerTransfers_TransferSum %>">
                    <ItemTemplate>
                        <asp:Label ID="TransferSumLabel" runat="server" Text='<%# GetNivdalData.GetNivdalData.FormattedNumber(Eval("Transfer sum")) %>' SkinID="GridLabel"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                <asp:Label ID="NoTransfersLabel" runat="server" Text="<%$ Resources:Resource, PlayerTransfers_NoTransfersLabel %>" SkinID="GridLabel"></asp:Label>            
            </EmptyDataTemplate>   
        </asp:GridView>

    
    </div>
    </div>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        SelectCommand="Nivdal_GetPlayerTransfers" SelectCommandType="StoredProcedure">
    </asp:SqlDataSource>
</asp:Content>

